function load_playlist() {
	var divs = $$('div');
	var liste_videos = "";
	for ( var i = 0; i < divs.length; i++) {
		if (divs[i].id.substring(0, 5) == "divP_")
			liste_videos += divs[i].id.substring(5, divs[i].id.length) + '~';
	}
	var myAjax = new Ajax.Request('Playlist', {
		   method: 'get',
		   parameters:'liste_videos=' + liste_videos,
		   onSuccess:function(transport,json) {
				thisMovie('player').sendEvent('STOP');
				thisMovie('player').sendEvent('LOAD',transport.responseText); 
			}
	});
	
}

function thisMovie(movieName) {
	if(navigator.appName.indexOf("Microsoft") != -1) {
	return window[movieName];
	} else {
	return document[movieName];
	}
};